import request from '@/utils/request'

// 查询价格列表
export function listPrich(query) {
  return request({
    url: '/hcmain/prich/list',
    method: 'get',
    params: query
  })
}

// 查询价格详细
export function getPrich(prichId) {
  return request({
    url: '/hcmain/prich/' + prichId,
    method: 'get'
  })
}

// 新增价格
export function addPrich(data) {
  return request({
    url: '/hcmain/prich',
    method: 'post',
    data: data
  })
}

// 修改价格
export function updatePrich(data) {
  return request({
    url: '/hcmain/prich',
    method: 'put',
    data: data
  })
}

// 删除价格
export function delPrich(prichId) {
  return request({
    url: '/hcmain/prich/' + prichId,
    method: 'delete'
  })
}
